
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// C端月度指标查询 (OEM)

// 列表
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttVsMonthTarget/page`, params)

//获取车系列表
export const getSeriesList = (params) => axios.get(`${SERVER.WHOLESALES}/ttVsMonthTarget/getSeriesList`)
// 获取车型列表
export const getModelList = (params) => axios.get(`${SERVER.WHOLESALES}/ttVsMonthTarget/getModelListBySeriesId`,{ params })

//C端月度指标模板导出
export const exportTemplateToC = (params) => axios.post(`${SERVER.WHOLESALES}/ttVsMonthTarget/exportTemplateToC`, params,{ responseType: 'blob' })
//B端月度指标模板导出
export const exportTemplateToB = (params) => axios.post(`${SERVER.WHOLESALES}/ttVsMonthTarget/exportTemplateToB`, params,{ responseType: 'blob' })

export const deleteBatchTarget = params => axios.get(`${SERVER.WHOLESALES}/ttVsMonthTarget/deleteBatchTarget`, { params })

export const assignBatchTarget = params => axios.get(`${SERVER.WHOLESALES}/ttVsMonthTarget/assignBatchTarget`, { params })

